package com.seal.tsms.school.service;

import com.seal.tsms.base.dao.BaseDao;
import com.seal.tsms.base.service.AbstractBaseService;
import com.seal.tsms.school.entity.EducationInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * Created by Administrator on 2016/1/20.
 */
@Service
@Transactional
public class EducationInfoServiceImpl extends AbstractBaseService<EducationInfo,String> implements EducationInfoService {



    @Autowired()
    @Qualifier("educationInfoDaoImpl")
    public void setSelfDao(BaseDao<EducationInfo, String> selfDao) {
        super.setSelfDao(selfDao);
    }

    public void saveList(List<EducationInfo> list) {
        for(EducationInfo ed:list){
            this.save(ed);
        }
    }
}
